{block #content}
    {* // TODO: add refresh *}
    
    {if count($headers)>0}
	<table class="celebriomailapp_mailheaders">
	    <thead>
		<tr><th>{!_'From'}</th><th>{!_'Subject'}</th><th>{!_'Time'}</th></tr>
	    </thead>
	    <tbody>
	    {if is_array($headers) && isset($headers[0])}
            
            {control paginator}
            
	    {foreach $headers as $header}
		<tr onmousedown="celebriomailappLink({link Default:mail,"number"=>$header["number"],"folder"=>$header["folder"]});"{if $header["unread"]} class="celebriomailapp_unread"{/if}>
		    <td class="celebriomailapp_fromname">{$header["from_reduced"]}</td>
		    <td class="celebriomailapp_subject">{$header["subject"]}</td>
		    <td class="celebriomailapp_date">{$header["date"]}</td>
		</tr>
	    {/foreach}
	    {/if}
	    </tbody>
	</table>
    {else}
	<p>No e-mails</p>
    {/if}
{/block}